# Contributor: Aiden Grossman <agrossman154@yahoo.com>
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
pkgname=pdfposter
pkgver=0.8
pkgrel=0
pkgdesc="Tool for scaling and tiling PDFs to multiple pages for printing"
url="https://gitlab.com/pdftools/pdfposter/"
arch="noarch"
license="GPL-3.0-only"
depends="py3-pypdf2 python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="https://gitlab.com/pdftools/pdfposter/-/archive/v$pkgver/pdfposter-v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver/"

build() {
	python3 setup.py build
}

check() {
	python3 -m pytest test/unit
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir" --optimize=1
}
sha512sums="
d7c231fada2c6ec0eb440f93f1b13896e808653054018cfc0b088d28735b6327eb85d1cbfd31e6fd53724b15723a31455793f88128838d25151168f6d74eb0c2  pdfposter-v0.8.tar.gz
"
